﻿@model HotelMgr.Models.Room

@{
    ViewBag.Title = "Create";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend style="font-size: 18px;font-weight: bolder;color: blueviolet;">房间</legend>
        <table width="100%">
            <tr>
                <th>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.RoomTypeID, "房间类型")
                    </div>
                    <div class="editor-field">
                        @Html.DropDownList("RoomTypeID", String.Empty)
                        @Html.ValidationMessageFor(model => model.RoomTypeID)
                    </div>
                </th>
                <th>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.RoomPrice)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.RoomPrice)
                        @Html.ValidationMessageFor(model => model.RoomPrice)
                    </div>
                </th>
            </tr>
            <tr>
                <th>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.RoomStateID, "状态")
                    </div>
                    <div class="editor-field">
                        @Html.DropDownList("RoomStateID", String.Empty)
                        @Html.ValidationMessageFor(model => model.RoomStateID)
                    </div>
                </th>
                <th>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.RoomUrl)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.RoomUrl)
                        @Html.ValidationMessageFor(model => model.RoomUrl)
                    </div>
                </th>
            </tr>
        </table>
        <p style="text-align: center;">
            <input type="submit" value="添加" />
        </p>
    </fieldset>
}

<div style="text-align: right;font-size: 18px;font-weight: bolder;">
    @Html.ActionLink("返回", "Index")
</div>
